﻿using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using PDFDesign.Model.Const;

namespace PDFDesign.Model
{
    /// <summary>
    /// 字体属性
    /// </summary>
    public class Font2
    {
        /// <summary>
        /// 字体大小
        /// </summary>
        [JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)]
        public int Size { get; set; }
        /// <summary>
        /// 字体名称
        /// </summary>
        [JsonProperty("name")]
        [JsonConverter(typeof(StringEnumConverter))]
        public FontName Name { get; set; }
    }
}